<?php

require_once("Unit.class.php"); //Takes arguments
require_once("Army.class.php"); //Takes arguments nation, color, unitID
require_once("Province.class.php"); //Takes arguments color, name, current_unit(optional)

$russol01 = new Army('Russia','White','01');
echo 'Nation: ' . $russol01 -> getNation();
echo '<br/>Has color: ' . $russol01 -> getColor();
echo '<br/>With unit number: ' . $russol01->getUnitID();

//$russol01 -> setColor('Red');
//echo '<br/>New color: ' . $russol01 -> getColor() . '<br>';

$sweden = new Province('Red','Sweden', $russol01->getUnitID());
echo '<br/><br/>Province:' . $sweden->getName();
echo '<br/>Now contains unit: ' . $sweden->getCurrent_unit();
echo '<br/>But has the color: ' . $sweden->getColor();

echo '<br/><br/>Unit: ' . $russol01->getUnitID() . ' now takes over: ' . $sweden->getName();
$sweden->setColor($russol01->getColor());
echo '<br/>And now ' . $sweden->getName() . ' now has the color: ' . $sweden->getColor();
?>
